import request from '@/utils/request'

export function getProductsList(params = {}) {
  return request({
    url: '/list/products',
    method: 'get',
    params
  })
}

export const delProducts = (params) => request({ url: '/delProducts', method: 'get', params })

export const updateProducts = (data = {}) => request({ url: '/updateProducts', method: 'post', data })

export const addProducts = (data = {}) => request({ url: '/addProducts', method: 'post', data })

export const getAllBoxs = (params = {}) => request({ url: '/allBoxs', method: 'get', params })

export const getBoxsList = (params = {}) => request({ url: '/list/boxs', method: 'get', params })

export const addBox = (data = {}) => request({ url: '/addBox', method: 'post', data })

export const updateBoxs = (data = {}) => request({ url: '/updateBoxs', method: 'post', data })

export const delBoxs = (params) => request({ url: '/delBoxs', method: 'get', params })
